package com.cxy.datawarehouse.biz;

import com.cxy.datawarehouse.entity.StandardCodeType;
import com.cxy.datawarehouse.service.StandardCodeTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Component
public class StandardCodeTypeBiz {
    @Resource
    private StandardCodeTypeService standardCodeTypeService;

    public List<StandardCodeType> list() {
        return standardCodeTypeService.list();
    }

    public void create(StandardCodeType standardCodeType) {
        standardCodeTypeService.create(standardCodeType);
    }

    public void deleteById(Long id){
        standardCodeTypeService.deleteById(id);
    }

    public void update(StandardCodeType standardCodeType){
        standardCodeTypeService.update(standardCodeType);
    }
}
